<template>
  <div>
    <layout-box one="通知发布" two="查看通知">
      <el-table :data="orderList" border stripe>
        <el-table-column type="index"></el-table-column>
        <el-table-column label="标题" prop="messageTitle"></el-table-column>
        <el-table-column label="内容" prop="messageContext"></el-table-column>
      </el-table>
    </layout-box>

  </div>
</template>
<script>
export default {
  name: "getInform",
  data() {
    return {
      rightsDialogVisible: false,
      addressForm: {},
      orderList: [],
    };
  },
  created() {
    this.getinform();
  },
  methods: {
    // 查询发布的通知
    async getinform() {
      const { data: res } = await this.$http.get("/message/getByTime");
      if (res.code != 200) {
        return this.$message.error("查询消息失败");
      } else {
        this.orderList = res.data;
      }
    },
  },
};
</script>
<style lang="less" scoped>
.el-table {
  margin-top: 15px;
}
.el-tag {
  margin: 7px;
}
.bdtop {
  border-top: 1px solid #eee;
}
.bdbottom {
  border-bottom: 1px solid #eee;
}
.vcenter {
  display: flex;
  align-items: center;
}
</style>